﻿using System.Data.Linq;
using Extreme.SPFramework.DependencyInjection;
using Extreme.SPFramework.DomainModel;
using Extreme.SPFramework.Test.Entities;

namespace Extreme.SPFramework.Test.Repositories
{
    /// <summary>
    /// Test insurer linq repository
    /// </summary>
    [Service]
    public class InsurerLinqRepository : LinqRepositoryBase<Insurer, DbTestDataContext>
    {
        public override System.Data.Linq.DataLoadOptions GetDefaultDataLoadOptions()
        {
            var options = new DataLoadOptions();
            options.LoadWith<Insurer>(i => i.Cases);
            return options;
        }
    }
}
